import React, { PureComponent } from 'react'
import MainTop from './MainTop'
import MainBottom from './MainBottom'
export default class Index extends PureComponent<any, any> {
    constructor(props:any){
        super(props)
        this.state={
            treeData:[],
            cascaderData:[]
        }
    }
 
    render() {
        const host = window.location.host;
        return (
            <React.Fragment>
                {
                    window.location.hash!=='#/train'&&<MainTop/>
                }
                {
                    host!=='tzsbpx1.shejiyuan.com'&& <MainBottom  params={this.props.params} />
                }
               
            </React.Fragment>
        )
    }
}
